import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

// 防止默认触摸行为
document.addEventListener('touchstart', function(e) {
  if (e.touches.length > 1) {
    e.preventDefault();
  }
}, { passive: false });

// 防止双击缩放
document.addEventListener('dblclick', function(e) {
  e.preventDefault();
}, { passive: false });

// 禁用移动设备上的缩放手势
document.addEventListener('gesturestart', function(e) {
  e.preventDefault();
}, { passive: false });

// 禁用右键菜单
document.addEventListener('contextmenu', (e) => {
  e.preventDefault()
})

ReactDOM.createRoot(document.getElementById("root")).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
);
